package com.zs.toolbox.web2j.db.config;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @author shuai.zhang  on 2018/10/11
 * @description
 */
public class WtDynamicDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return WtDbContextHolder.getDbType();
    }
}
